﻿using System.Collections.Generic;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase;

namespace ZilLion.Service.WeChatMall.Domain.Responses.CrmProxy
{
    public class TransactionFlowingResponse : ResponseBase
    {
        [JsonProperty("list")]
        public IList<Oprinfo> TransactionFlowingList { get; set; }
    }


    public class CrmTransactionFlowingResponse
    {
        [JsonProperty("tmpcol")]
        public int Tmpcol { get; set; }

        [JsonProperty("oprInfo")]
        public Oprinfo[] OprInfo { get; set; }

        [JsonProperty("errormodel")]
        public CrmErrormodel Errormodel { get; set; }

        [JsonProperty("description")]
        public string Description { get; set; }

        [JsonProperty("httpcode")]
        public int Httpcode { get; set; }

        [JsonProperty("dbCommitted")]
        public bool DbCommitted { get; set; }

        [JsonProperty("isSuccess")]
        public bool IsSuccess { get; set; }

        [JsonProperty("hascommit")]
        public bool Hascommit { get; set; }

        [JsonProperty("findAccid")]
        public bool FindAccid { get; set; }

        [JsonProperty("requestGuid")]
        public object RequestGuid { get; set; }
    }

    public class Oprinfo
    {
        [JsonProperty("oprcrmsno")]
        public string Oprcrmsno { get; set; }

        [JsonProperty("oprtype")]
        public int Oprtype { get; set; }

        [JsonProperty("oprtypesm")]
        public string Oprtypesm { get; set; }

        [JsonProperty("oprtime")]
        public string Oprtime { get; set; }

        [JsonProperty("oprbrid")]
        public int Oprbrid { get; set; }

        [JsonProperty("oprbrname")]
        public string Oprbrname { get; set; }

        [JsonProperty("oprsum")]
        public decimal Oprsum { get; set; }

        [JsonProperty("opraftsum")]
        public float Opraftsum { get; set; }
    }
}